# -*- coding: utf-8 -*-
#

#import logging
#import logging.config

#logging.config.fileConfig("../config/logging.conf")
#logger = logging.getLogger("Service")

from sippeer.utils.logutil import logger

class Service:
    """
    """
    
    def __init__(self, service_name, service_type):
        """
        use name and type to initialize the service instance
        """
        self._serviceName = service_name
        self._serviceType = service_type
    
    def getServiceName(self):
        return self._serviceName
    
    def getServiceType(self):
        return self._serviceType
    
    def startService(self):
        """
        Interface method to start service.
        Must be implemented in the concrete service class
        """
        logger.debug("Service::start service")
        pass
    
    def stopService(self):
        """
        Interface method to stop service
        Must be implemented in the concrete service class
        """
        pass
    
    def serviceUpdateNotify(self):
        """
        """
        pass
    
    def testImport(self):
        print "Congratulations!!! import successfully: " + self._serviceName 
    